import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/Movies'
    },
    {
      path: '/Movies',
      name: 'Movies',
      component: () => import('../views/movies/MoviesView.vue'),
      meta: { isShow: true }
    },
    {
      path: '/Cinema',
      name: 'Cinema',
      component: () => import('../views/cinema/CinemaView.vue'),
      meta: { isShow: true }
    },
    {
      path: '/Iofo',
      name: 'Iofo',
      component: () => import('../views/info/IofoView.vue'),
      meta: { isShow: true }
    },
    {
      path: '/My',
      name: 'My',
      component: () => import('../views/my/MyView.vue'),
      meta: { isShow: true }
    },
    {
      path: '/particulars', //详情页
      name: 'particulars',
      component: () => import('../components/particulars/particularsView.vue'),
      meta: { isShow: false }
    },
    {
      path: '/address', //地址
      name: 'address',
      component: () => import('../components/address/addressView.vue'),
      meta: { isShow: false }
    }
  ]
})

export default router
